package com.gitee.wsl.common.draw.step

import com.gitee.wsl.common.chart.render.background.axis.step.toStepCalculator
import org.junit.Test

class StepCalculatorTest {

  @Test
  fun testStepCalculator() {
      val rage = 0.0f..10.0f
      val stepCalc = rage.toStepCalculator(2)
      while (stepCalc.hasNext()) {
          println("next index:${stepCalc.currentStepIndex}:${stepCalc.next()}")
      }
  }
}